package com.china08.yxyapi.entity.mg.sws;

import java.util.Date;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 网站每日pv统计
 * 
 * @author Richard.Wang
 * 
 */
@SuppressWarnings("serial")
@Document(collection = "sws_pv_daily_analyze")
public class SwsPvForDailyAnalyze extends MongoBaseEntityNoId {

	@Id
	private String id;
	/**
	 * 学校id
	 */
	@Field(value = "school_id")
	private String schoolId;

	/**
	 * 统计日期
	 */
	@Field(value = "date_for_pv")
	private Date dateForPv;

	/**
	 * 统计日期中的年 例如2017
	 */
	@Field(value = "year_for_pv")
	private Integer yearForPv;

	/**
	 * 统计日期中月例如 3
	 */
	@Field(value = "month_for_pv")
	private Integer monthForPv;

	/**
	 * 统计日期中的日期例如 (15)
	 */
	@Field(value = "day_for_pv")
	private Integer dayForPv;

	/** 访问统计 */
	@Field(value = "pv")
	private Long pv;

	public String getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(String schoolId) {
		this.schoolId = schoolId;
	}

	public Date getDateForPv() {
		return dateForPv;
	}

	public void setDateForPv(Date dateForPv) {
		this.dateForPv = dateForPv;
	}

	public Long getPv() {
		return pv;
	}

	public void setPv(Long pv) {
		this.pv = pv;
	}

	public Integer getYearForPv() {
		return yearForPv;
	}

	public void setYearForPv(Integer yearForPv) {
		this.yearForPv = yearForPv;
	}

	public Integer getMonthForPv() {
		return monthForPv;
	}

	public void setMonthForPv(Integer monthForPv) {
		this.monthForPv = monthForPv;
	}

	public Integer getDayForPv() {
		return dayForPv;
	}

	public void setDayForPv(Integer dayForPv) {
		this.dayForPv = dayForPv;
	}

}
